//
//  HotIndustries.m
//  RedManStock
//
//  Created by lanou3g on 15/7/27.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "HotIndustries.h"

@implementation HotIndustries

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"id"]) {
        
        self.idSB = [NSString stringWithFormat:@"%@",value];
        
    }else if ([key isEqualToString:@"updownRate"]){
        
        float a =  (float)[value floatValue]*100;
        
        self.updownRateSB = [NSString stringWithFormat:@"%.2f%%",a];
        
    }else if ([key isEqualToString:@"stockNowPrice"]){
        
        float a = [value floatValue];
        self.stockNowPriceSB = [NSString stringWithFormat:@"%.2f",a];
    
    }else if ([key isEqualToString:@"stockUpdownRate"]){
        
        float a = (float)[value floatValue]*100;
        self.stockUpdownRateSB = [NSString stringWithFormat:@"%.2f%%",a];
        
    }
    
}






@end
